/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package CalculationManager;

/**
 *
 * @author jfernan
 */
public class CalculationManager {
  private IMultiplicationService multiplicatorService;

    public IMultiplicationService getMultiplicatorService() {
        return multiplicatorService;
    }

    public void setMultiplicatorService(IMultiplicationService multiplicatorService) {
        this.multiplicatorService = multiplicatorService;
    }

    public Integer calculatePrice(Integer price, Integer amount, Integer reduction) {
        return multiplicatorService.multiply(price, amount) - reduction;
    }

}
